using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CR.Domain.Entities
{
    /// <summary>
    /// 企业照片表
    /// </summary>
    [Table("EnterprisePhoto")]
    public class EnterprisePhoto
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 溯源管理编号
        /// </summary>
        [Required]
        [StringLength(50)]
        public string TraceabilityCode { get; set; }

        /// <summary>
        /// 类型(1-生产环境，2-办公环境，3-其他)
        /// </summary>
        public int PhotoType { get; set; }

        /// <summary>
        /// 企业图片
        /// </summary>
        [StringLength(255)]
        public string PhotoPath { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(0-未删除，1-已删除)
        /// </summary>
        public int IsDeleted { get; set; } = 0;
    }
} 